package at.spengergasse.util;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

public class StringHashCodeTest
{
	private final String name = "Geheimnis";
	private final String testname = "Geheimnis";
	private final String testname2 = "geheimnis";

	int hash = name.hashCode();
	int hashequal = testname.hashCode();
	int hashnotequal = testname2.hashCode();

	@Test
	public void testHashCodeCorrect()
	{

		assertEquals(hashequal, hash);
	}

	@Test(expected = AssertionError.class)
	public void testHashCodeFalse()
	{

		assertEquals(hashnotequal, hash);
	}

}
